package cn.vonce.sqlbean.example.model.vo;

import cn.vonce.sql.annotation.SqlJoin;
import cn.vonce.sqlbean.example.model.entity.Essay;
import cn.vonce.sqlbean.example.model.entity.User;
import cn.vonce.sqlbean.example.model.entity.sql.Essay$;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 文章关联用户信息对象VO
 *
 * @author Jovi
 * @email imjovi@qq.com
 * @date 2023/10/27 19:08
 */
@Data
public class EssayUserVO extends Essay {

    @ApiModelProperty("关联用户信息")
    @SqlJoin(mainKeyword = Essay$.user_id, isBean = true)
    private User user;

}
